//
//  DDPublishedJobCell.m
//  DingDongZP
//
//  Created by Jyh on 16/4/21.
//  Copyright © 2016年 iyhjiang.com. All rights reserved.
//

#import "DDPublishedJobCell.h"

@implementation DDPublishedJobCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    
    self.jobtitleLabel.text = @"";
    self.seeLabel.text = @"";
    self.likeLabel.text = @"";
    self.forwardLabel.text = @"";
    self.checkImage.hidden = YES;
    
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)configureJobCellWithInfo:(DDBossPublishedJobInfo *)info
{
    // 审核失败
    if ([info.isverified isEqualToString:@"0"]) {
        self.jobtitleLabel.textColor = COLOR_FONT_LIGHT_GRAY;
        self.seeLabel.textColor = COLOR_FONT_LIGHT_GRAY;
        self.likeLabel.textColor = COLOR_FONT_LIGHT_GRAY;
        self.forwardLabel.textColor = COLOR_FONT_LIGHT_GRAY;
        
        self.seeImage.image = [UIImage imageNamed:@"boss_icon_see_normal"];
        self.likeImage.image = [UIImage imageNamed:@"boss_icon_like_normal"];
        self.forwardImage.image = [UIImage imageNamed:@"boss_icon_forward_normal"];
        self.checkImage.hidden = NO;
        
    }
    
    if ([info.jobtitle length] > 0) {
        self.jobtitleLabel.text = info.jobtitle;
    } else {
        self.jobtitleLabel.text = info.category;
    }
    self.seeLabel.text = info.hits == nil ? @"0" : info.hits;
    self.likeLabel.text = info.jobinterestedcount;
    self.forwardLabel.text = info.hitsh5;

}

@end
